import 'package:json_annotation/json_annotation.dart';

part 'me.g.dart';

@JsonSerializable()
class Me {
  final int userId;
  final int userIdInClient;
  final String username;
  final String nickname;
  final String realName;
  final String birthday;
  final String idCard;
  final String avatar;
  final String email;
  final String mobile;

  Me(
    this.userId,
    this.userIdInClient,
    this.username,
    this.nickname,
    this.realName,
    this.birthday,
    this.idCard,
    this.avatar,
    this.email,
    this.mobile,
  );

  factory Me.fromJson(Map<String, dynamic> json) => _$MeFromJson(json);

  Map<String, dynamic> toJson() => _$MeToJson(this);
}
